package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.flow.FlowFormEquipmentModifyServerDetail;
import com.glsc.ngateway.common.api.flowable.dto.task.formData.equipment.domainDto.FlowFormEquipmentModifyServerDetailDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: xuchang
 * @Desc: domin到dto转换
 */
@Mapper(componentModel = "spring")
public interface FlowFormEquipmentModifyServerDetailMapper {

    FlowFormEquipmentModifyServerDetailMapper INSTANCE = Mappers.getMapper(FlowFormEquipmentModifyServerDetailMapper.class);

    @Mapping(target = "ipList", ignore = true)
    @Mapping(target = "ipListModified", ignore = true)
    FlowFormEquipmentModifyServerDetailDto domain2dto(FlowFormEquipmentModifyServerDetail domain);


    List<FlowFormEquipmentModifyServerDetailDto> domain2dto(List<FlowFormEquipmentModifyServerDetail> domain);

    @Mapping(target = "ipListStr", ignore = true)
    @Mapping(target = "ipListModifiedStr", ignore = true)
    @Mapping(target = "insertTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    FlowFormEquipmentModifyServerDetail dto2domain(FlowFormEquipmentModifyServerDetailDto dto);

    List<FlowFormEquipmentModifyServerDetail> dto2domain(List<FlowFormEquipmentModifyServerDetailDto> dto);
}
